package com.bg.print.entity;


import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


/**
 * 订单
 * @TableName t_order
 */
@Data
@TableName("t_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 *
	 */
	@Schema(description = "id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 报价
	 */
	@Schema(description = "报价")
	private BigDecimal quotation;
	/**
	 * 付款
	 */
	@Schema(description = "付款")
	private BigDecimal payment;
	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	private Date cTime;
	/**
	 * 完成时间
	 */
	@Schema(description = "完成时间")
	private Date dTime;
	/**
	 * 明细
	 */
	@Schema(description = "明细")
	private String remarks;
	/**
	 * 状态1.创建 2.报价 3.报价完成 4.完成支付 5.准备打印 6.打印中 7.打印完成 8.订单完成 9.取消）
	 */
	@Schema(description = "状态1.创建 2.报价 3.报价完成 4.完成支付 5.准备打印 6.打印中 7.打印完成 8.订单完成 9.取消）")
	private Integer status;
	/**
	 * 删除(1删除，0启用)
	 */
	@Schema(description = "删除(1删除，0启用)")
	private Integer enabled;
	/**
	 *
	 */
	@Schema(description = "用户id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long userId;
	/**
	 * 订单是否取消
	 */
	@Schema(description = "订单是否取消")
	private Integer cancel;
	/**
	 * 支付宝交易凭证号
	 */
	@Schema(description = "支付宝交易凭证号")
	private String tradeNo;
	/**
	 * 交易金额
	 */
	@Schema(description = "交易金额")
	private BigDecimal totalAmount;
	/**
	 * 买家在支付宝唯一id
	 */
	@Schema(description = "买家在支付宝唯一id")
	private String buyerId;
	/**
	 * 买家付款时间
	 */
	@Schema(description = "买家付款时间")
	private Date gmtPayment;


}
